﻿@{
    ViewBag.Title = "Add Parcel";
    Layout = "~/Views/Shared/_PopupLayout.cshtml";
}

<div style="padding: 10px">
    @Html.Partial("Partial/_MessageResult")
    <form action="/rdm/addparcel" method="POST">
        <input type="hidden" name="ReturnId" value="@ViewBag.ReturnId"/>
        <input type="hidden" name="DisputeId" value="@ViewBag.DisputeId"/>
        <fieldset>
            <legend>Parcel information</legend>
            <div class="row-fluid">
                <div class="span5">
                    <div class="border-padding10">
                        <div class="row-fluid">
                            <div class="span4">Date Received</div>
                            <div class="span8">
                                <div class="datetimepicker input-append">
                                    <input data-format="MM/dd/yyyy" type="text" name="DateReceived" required="required" style="width: 83%">
                                    <span class="add-on">
                                        <i data-time-icon="icon-time" data-date-icon="icon-calendar" class="icon-calendar"></i>
                                    </span>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span4">Number of Parcels</div>
                            <div class="span8">
                                <input type="number" class="input-block-level" name="NumberOfParcels" required="required" />
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span4">Parcels Contents</div>
                            <div class="span8">
                                <input type="text" class="input-block-level" name="ParcelContents" required="required" />
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span4">Condition</div>
                            <div class="span8">
                                @Html.DropDownList("ConditionID", null, new{@class="input-block-level"})
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span4">Liability(if damaged)</div>
                            <div class="span8">
                                @Html.DropDownList("LiabilityID", null, new{@class="input-block-level"})
                            </div>
                        </div>
                    </div>
                </div>

                <div class="span7">
                    <div class="border-padding10">
                        Condition Description
                        <textarea class="input-block-level" rows="8" name="ConditionDescription" required="required"></textarea>
                    </div>
                </div>
            </div>
        </fieldset>
        <div class="text-right">
            <button type="submit" class="btn btn-primary">Save</button>
        </div>
    </form>
</div>
